﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.PollReportViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Reports
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="pageHeadingContainer"><h2 class="pageHeading">Poll Reports</h2></div>
    <div id="contentContainer">
        <p><%= Html.ActionLink("Polls > ", "Index", "Poll", null, new { @class = "breadcrumb" })%><%= Model.name %></p>
        <div id="pageMenuContainer">
            <ul id="pageMenu">
                <li><%= Html.ActionLink("Details", "Questions", new { pollID = Model.pollID }) %></li>
                <li><%= Html.ActionLink("Run", "SetSession", new { pollID = Model.pollID }) %></li>
                <li><%= Html.ActionLink("Test", "Test", new { pollID = Model.pollID }) %></li>
                <li>Reports</li>
                <li><%= Html.ActionLink("Manage Hierarchy", "EntityHierarchy", new { pollID = Model.pollID }) %></li>
            </ul>
        </div>
        <div>
            <h3>Statistical Reports</h3>
            <table>
            <tr><td>Results by Question</td>
            <td><a href="<%=Url.Action("QuestionReportTextual", new { pollID = Model.pollID }) %>"><img src="../../Resources/text.png" /></a></td>
            <td><a href="<%=Url.Action("QuestionReportGraphical", new { pollID = Model.pollID }) %>"><img src="../../Resources/graphic.png" /></a></td>
            </tr>        
            
            <tr><td>Demographic Comparison</td>
            <td><a href="<%=Url.Action("DemographicReportTextual", new { pollID = Model.pollID }) %>"><img src="../../Resources/text.png" /></a></td>
            <td><a href="<%=Url.Action("DemographicReportGraphical", new { pollID = Model.pollID }) %>"><img src="../../Resources/graphic.png" /></a></td>
            </tr>

            <tr><td>Session Participation</td>
            <td><a href="<%=Url.Action("SessionParticipationTextual", new { pollID = Model.pollID }) %>"><img src="../../Resources/text.png" /></a></td>
            <td><a href="<%=Url.Action("SessionParticipationGraphical", new { pollID = Model.pollID }) %>"><img src="../../Resources/graphic.png" /></a></td>
            </tr>
            
            </table>
        </div>
     
    </div>
        
</asp:Content>
